﻿using System;
using System.Collections.Generic;
using System.Text;
using NewThinkings.DataLayer.DataObjects.SQL;
using NewThinkings.Framework.Log;
using NewThinkings.BusinessLayer.BusinessObject;
using NewThinkings.BusinessLayer.BusinessObject.Core;
using System.Diagnostics;

namespace NewThinkings.DataLayer.DataObjects.Core
{
    public class CInterfaceFunctionDao:CDaoBase
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pInputValue"><InputValue UserID="1"></param>
        /// <returns></returns>
        public IList<CInterfaceFunction> GetInterfaceFunction(string pInputValue)
        {
            try
            {
                return CallFunctionWithList<CInterfaceFunction>(CSystemFunction.GetInterfaceFunctionByUserID, pInputValue);
            }
            catch (Exception ex)
            {
                string stack = GetStackTrace(new StackTrace());
                CLogManager.WriteDAL("CInterfaceFunctionDao",stack + ":::"+ ex.Message);
                return null;
            }
        }
    }
}
